<?php
include("includes/header.php");
include("includes/content.php");
include("includes/footer.php");
	
	class application{		

		protected $html_inicio;
		protected $html_fim;
		protected $content_page;
		
		public function run(){
			
			$header = new header();
			$content = new content();
			$footer = new footer();
			
			$this->htmlEstrutura();
			
			echo $this->html_inicio;
			$header->showHtml();
			$content->showHtml();
			$footer->showHtml();
			echo $this->html_fim;
		}
		
		public function htmlEstrutura(){
			$this->html_inicio = 
			'<html xmlns="http://www.w3.org/1999/xhtml">
				<head>
					<title>Biblioteca PHP</title>
					<meta http-equiv="Content-Type" content="text/html; charset="ISO-8859" />
					<link href="styles/style.css" rel="stylesheet" type="text/css" />
				</head>
				<body>
					<div id="container">';
			
			$this->html_fim = 
			'</div>
			</body>
			</html>';
		}
	}

	

?>
		